package com.gz.gzspringboot.config;

import com.gz.gzspringboot.bean.Monster;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.gz.gzspringboot")
public class GzConfig {

    //注入Bean
    @Bean
    public Monster monster() {
        return new Monster();
    }
}
